<template>
  <div id="addProvider">
    <table>
      <tr>
        <td>供应商编号</td>
        <td><el-input v-model="provider.providerCode"></el-input></td>
        <td>供应商名称</td>
        <td><el-input v-model="provider.providerName"></el-input></td>
      </tr>
      <br>
      <tr>
        <td>供应商类别</td>
        <td><el-select v-model="provider.providerTypeId" placeholder="类别">
            <el-option label="区域一" value="shanghai"></el-option>
            <el-option label="区域二" value="beijing"></el-option>
          </el-select></td>
        <td>业务员</td>
        <td><el-select v-model="provider.employeeId">
            <el-option label="区域一" value="shanghai"></el-option>
            <el-option label="区域二" value="beijing"></el-option>
          </el-select></td>
      </tr>
      <br>
      <tr>
        <td>期初应付款</td>
        <td><el-input v-model="provider.shouldPay"></el-input></td>
        <td>期初预付款</td>
        <td><el-input v-model="provider.wishPay"></el-input></td>
      </tr>
      <br>
      <tr>
        <td>开户银行</td>
        <td><el-input v-model="provider.bankName"></el-input></td>
        <td>银行账号</td>
        <td><el-input v-model="provider.bankAccount"></el-input></td>
      </tr>
      <br>
      <tr>
        <td>交货方式</td>
        <td><el-select v-model="provider.delId">
            <el-option label="区域一" value="shanghai"></el-option>
            <el-option label="区域二" value="beijing"></el-option>
          </el-select></td>
        <td>是否物流公司</td>
        <td><el-select v-model="provider.isWuliu">
            <el-option label="区域一" value="shanghai"></el-option>
            <el-option label="区域二" value="beijing"></el-option>
          </el-select></td>
      </tr>
      <br>
    </table>
    <p>联系人信息</p>
    <br>

    <table id="contact">
      <tr>
        <th></th>
        <th>联系人</th>
        <th>电话</th>
        <th>邮箱</th>
        <th>联系地址</th>
      </tr>
      <tr>
        <td></td>
        <td></td>
        <td></td>
        <td></td>
        <td></td>
      </tr>
      <tr>
        <td></td>
        <td></td>
        <td></td>
        <td></td>
        <td></td>
      </tr>
    </table>
    <br>
    <el-input style="width: 600px;" type="textarea" placeholder="备注" v-model="provider.remark"></el-input>
  </div>
</template>

<script>
export default {
  name: 'AddProvider',
  data() {
    return {
      provider: {
        providerCode: '',
        providerName: '',
        providerTypeId: '',
        shouldPay: '',
        wishPay: '',
        employeeId: '',
        areaCode: '',
        contactAddress: '',
        bankName: '',
        bankAccount: '',
        delId: '',
        isWuliu: '',
        remark: ''
      },
      contactList: [
        {
          contactName: 'test1',
          mobile: '13878594678',
          email: '2222@qq.com',
          contactAddress: 'test1'
        }
      ]
    }
  },
}
</script>

<style scoped>
#addProvider {
  width: 100%;
  height: 450px;
  overflow: scroll;
  /* background-color: pink; */
}

#contact {
  width: 90%;
  margin: auto;
  border-collapse: collapse;
  color: #707276;
}

#contact th,
#contact td {
  border: 1px #c0c4cc solid;
  height: 35px;
  min-width: 30px;
}

p {
  color: #4b4a4a;
  font-size: 18px;

}

.el-input {
  width: 240px;
}

table td :not([id=contact]) {
  text-align: left;
  padding-right: 10px;
  /* padding-top: 10px;
  padding-bottom: 10px; */
}

td:nth-child(odd) {
  text-align: center;
  padding-right: 10px;
}
</style>